﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace MyAMS.WebServer.Models
{    
    /// <summary>
    /// 用户模型
    /// </summary>
    [DataContract]
    public class User : BaseUser
    {
        /// <summary>
        /// 获取或设置密码
        /// </summary>
        [DataMember]
        public string Password { get; set; }

        /// <summary>
        /// 获取或设置问题
        /// </summary>
        [DataMember]
        public string Question { get; set; }

        /// <summary>
        /// 获取或设置答案
        /// </summary>
        [DataMember]
        public string Answer { get; set; }

        /// <summary>
        /// 获取或设置状态
        /// </summary>
        [DataMember]
        public byte Status { get; set; }

        /// <summary>
        /// 获取或设置默认语言
        /// </summary>
        [DataMember]
        public Language LanguageDefault { get; set; }

        /// <summary>
        /// 获取或设置语言列表
        /// </summary>
        [DataMember]
        public IList<Language> Languages { get; set; }

        /// <summary>
        /// 获取或设置护照
        /// </summary>
        [DataMember]
        public UserPassport Passport { get; set; }

        /// <summary>
        /// 获取或设置所注册的站点
        /// </summary>
        //[DataMember]
        //public Node NodeRegisteredFrom { get; set; }
        //TODO (5he11)
    }
}
